﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="user_pic.aspx.cs" Inherits="user_user_pic" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>我的头像</title>
	<link href="../css/user01.css" rel="stylesheet">
    <link href="../css/ecrm03.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/Function.js"></script>
    <script type="text/javascript" src="../js/myCheck.js"></script>
    <script type="text/javascript" language="javascript">
        function chk()
        {
			if(CheckText(form1.headpic,"图片文件",300)==false) return false;
            
			return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="900" border="0" cellpadding="0" cellspacing="0" align="center">
            <tr>
                <td>
                    <div id="nav"><a class="now" href="../index.aspx"><span>首页</span></a></div>
                    <div class="clear"></div><div id="status"><div id="subnav"></div><span class="pl">&nbsp;</span></div><br />
                    <div><h1>我的头像</h1></div>
                    <p style="margin-left: 20px;">
         <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td rowspan="5" valign="top" align="center" width="60"><asp:Literal ID="picfile" runat="server"></asp:Literal></td>
                <td class="title1">从你的电脑上选择图像文件:</td>
            </tr>
            <tr height="20">
                <td></td>
            </tr>
            <tr>
                <td class="title2">你可以上传JPG、JPEG、GIF、PNG或BMP文件。<br />
                <INPUT id="headpic" style="WIDTH: 338px; HEIGHT: 22px" type="file" size="37" name="headpic"	runat="server"><br />
				<asp:button id="btnUpload" runat="server" Text="上传照片" OnClick="btnUpload_Click"></asp:button>
                </td>
            </tr>
            <tr height="20">
                <td></td>
            </tr>
            <tr>
                <td><asp:button id="btnSave" runat="server" Text="保存头像设置" OnClick="btnSave_Click"></asp:button>&nbsp;<asp:button id="btnBack" runat="server" Text="返回" OnClick="btnBack_Click"></asp:button></td>
            </tr>
        </table>
	    <div id="myhidediv" style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; VISIBILITY: hidden; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; HEIGHT: 1px"><asp:TextBox id="uid" runat="server"></asp:TextBox><asp:TextBox id="mypicfile" runat="server"></asp:TextBox></div>
                    </p>
                    <br />
                    <div style="border-bottom: darkgray 1px dashed;"></div>
                    <span class="bottomfont">&copy;EasyCRM 2008-2009 汽车中国</span>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
